package com.example.demo.entity;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

import lombok.Data;

/**
 * 点赞实体
 * 
 * @author wang
 *
 */
@Data
public class BookAssist {
	@JsonIgnore
	private Integer id;

	/**
	 * 点赞时间
	 */
	@JsonInclude(value = Include.NON_NULL)
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;

	/**
	 * 评论id或者回复id
	 */
	@JsonIgnore
	private int comment_id;
	/**
	 * 
	 */
	@JsonInclude(value = Include.NON_NULL)
	private Integer commentId;

	/**
	 * 点赞人id
	 */
	private int user_id;
	
	@JsonInclude(value = Include.NON_NULL)
	private Integer userId;
	/**
	 * 评论的点赞数
	 */
	private int bookAssistAccount;

}
